Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve chain dot checking #480

Merged
merged 18 commits into from
Jan 31, 2024
Merged

Conversation

scxiao
Copy link

@scxiao scxiao commented Jan 23, 2024

Current check of chain dot is: is output of a dot is any input of another dot, we consider them as chainDot, which is not accurate. This PR is to improve that as: output of a dot is the first argument of another dot.

@scxiao scxiao marked this pull request as draft January 23, 2024 15:51
@scxiao scxiao marked this pull request as ready for review January 23, 2024 20:27
warpsPerTile(tt::DotOp dotOp, const ArrayRef<int64_t> shape, int numWarps,
SmallVector<int64_t, 2> shapePerWarp) {
// TODO: needs to be updated with appropriate shapePerWarp etc.
static bool isChainDot(tt::DotOp &dotOp) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe change name to something more descriptive, for example isTransposeChainDotPattern?

Suggested change
static bool isChainDot(tt::DotOp &dotOp) {
static bool isTransposeChainDotPattern(tt::DotOp &dotOp) {

+cc @oplavsic

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @alefimov-amd. Changed accordingly.

Copy link
Collaborator

@oplavsic oplavsic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@scxiao scxiao merged commit 6aa0111 into triton-mlir Jan 31, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants